<template>
<div>
  <h2>Music组件</h2>
  <button @click="getMovieList">点击获取电影数据</button>
  <ul>
    <li v-for="item in musicList" :key="item.id">{{item.name}}</li>
  </ul>
</div>
</template>

<script>

import {mapState,mapActions} from "vuex";

export default {
  name: "Music",
  computed:{
    ...mapState('Music',['musicList'])
  },
  methods:{
    ...mapActions('Music',['getMovieList'])
  }
}
</script>

<style scoped>

</style>